import Vue from 'vue'
import Router from 'vue-router'

import Err from "@/components/Err"
import Home from "@/components/Home"
import PersonCenter from "@/components/PersonCenter"
import OpenOK from "@/components/OpenOK"
import Recharge from "@/components/Recharge"
// import AgentMap from "@/components/AgentMap"
import AgentMaps from "@/components/AgentMaps"

import SelectLang from "@/components/SelectLang"
import MoreBill from "@/components/MoreBill"
import ChangePass from "@/components/ChangePassword"
import Detail from "@/components/Detail"

import Test from "@/components/Test"


// import Test1 from "@/components/Test1"
// import Test2 from "@/components/Test2"
// import Test3 from "@/components/Test3"
// import Test4 from "@/components/Test4"


Vue.use(Router)

export default new Router({
  mode: 'hash',
  base: "express_wallet ",
  routes: [


    // // 启动页
    // {
    //   path: '/',
    //   name: 'Test4',
    //   component: Test4,
    // },

    // {
    //   // 开通
    //   path: '/test1',
    //   name: 'Test1',
    //   component: Test1,
    //   meta: {
    //     path: "/test1",
    //   }
    // },
    // {
    //   // 签约
    //   path: '/test2',
    //   name: 'Test2',
    //   component: Test2,
    // },
    // {
    //   // 主页
    //   path: '/test3',
    //   name: 'Test3',
    //   component: Test3,
    // },





    {
      path: '/',
      name: 'Home',
      component: Home
    },

    {
      path: '/personCenter',
      name: 'PersonCenter',
      component: PersonCenter
    },
    {
      path: '/openOK',
      name: 'OpenOK',
      component: OpenOK
    },
    {

      path: '/recharge',
      name: 'Recharge',
      component: Recharge
    },
    {
      path: '/agentMap',
      name: 'AgentMaps',
      component: AgentMaps
    },
    {

      path: '/selectLang',
      name: 'SelectLang',
      component: SelectLang
    },
    {
      path: "/moreBill",
      name: "MoreBill",
      component: MoreBill,
    },
    {
      path: "/changePassword",
      name: "ChangePassword",
      component: ChangePass,
    },
    {
      path: "/detail",
      name: "Detail",
      component: Detail,
    },








    {
      path: "/test",
      name: "Test",
      component: Test,
    },
    {
      path: "*",
      name: "Err",
      component: Err,

    },

  ]
})
